import * as ElementPlusIconsVue from '@element-plus/icons-vue'
import { App } from 'vue'
import SvgIcon from './components/SvgIcon.vue'

const install = (app: App<Element>) => {
  /**全局注册element-ui icon */
  for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
    app.component(key, component)
  }
  /**全局注册系统icon*/
  app.component('svg-icon', SvgIcon)
}

export default {
  install
}